package com.uco.generics;

public interface ProcessPeople<E> {
    public abstract void save(Student p);
    void query(E p);
}

class ProcessTeacher implements ProcessPeople<Teacher> {
    @Override
    public void save(Student p) {
        System.out.println("Saving Teacher");
    }

    @Override
    public void query(Teacher p) {
        System.out.println("Querying Teacher");
    }
}

class ProcessStudent implements ProcessPeople<Student> {
    @Override
    public void save(Student p) {
        System.out.println("Saving Student");
    }

    @Override
    public void query(Student p) {
        System.out.println("Querying Student");
    }
}